b802297b953b634078640cbca25c2bc02a4aa711,httpasyncclient-cache/src/main/java/org/apache/http/impl/client/cache/AsynchronousAsyncValidationRequest.java,AsynchronousAsyncValidationRequest,run,#,72
Before Change
public void run() {
try {
this.cachingAsyncClient.revalidateCacheEntry(this.target, this.request, this.context,
this.cacheEntry, new FutureCallback<HttpResponse>() {
public void cancelled() {
}
public void completed(final HttpResponse httpResponse) {
}
public void failed(final Exception e) {
if (e instanceof IOException) {
AsynchronousAsyncValidationRequest.this.log
.debug("Asynchronous revalidation failed due to exception: "
+ e);
}
}
});
} catch (final ProtocolException pe) {
this.log.error("ProtocolException thrown during asynchronous revalidation: " + pe);
} finally {
After Change
}
};
final BasicFuture<HttpResponse> future = new BasicFuture<HttpResponse>(callback);
this.cachingAsyncClient.revalidateCacheEntry(future, this.target, this.request, this.context,
this.cacheEntry);
future.get();
} catch (final ProtocolException pe) {
this.log.error("ProtocolException thrown during asynchronous revalidation", pe);